﻿using System;
namespace YmtAuth.Common
{
    public struct ModelExecuteResult<T>
    {
        private string message;
        private bool success;
        private T value;

        public ModelExecuteResult(bool success,string message)
            : this(success, message, default(T))
        {
        }
        public ModelExecuteResult(bool success)
            : this(success, string.Empty, default(T))
        {
        }
        public ModelExecuteResult(bool success, string message, T value)
        {
            this.message = message;
            this.success = success;
            this.value = value;
        }

        public String Message { get { return this.message; } }
        public bool Success { get { return this.success; } }
        public T Value { get { return this.value; } }
    }
}
